package com.inspur.edp.common.expr.evaluator;

import lombok.Data;

import java.util.Map;

/**
 * @author lizhaorui
 * @date 2025/8/15
 * @description
 */

@Data
public class DirectEvaluator implements ExpressEvaluator {

    private String variableName;

    public DirectEvaluator(String variableName) {
        this.variableName = variableName;
    }

    @Override
    public Object evaluate(Map<String, Object> dataMap) {
        return dataMap.get(variableName);
    }

}